package com.zhichat.web.vo.ws;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @ClassName: UserSessionInfo
 * @Description: 用户会话信息VO
 * @Author: 团长九哥 https://space.bilibili.com/602197686
 * @CreateDate: 2024/12/12 12:20
 */
@Data
@Accessors(chain = true)
public class UserSessionInfoVO implements Serializable {
    /**
     * 用户id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;
    /**
     * 接收者id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long receiverId;
    /**
     * 接收者类型
     */
    private Integer receiverType;
    /**
     * 接收者名称
     */
    private String receiverNickname;
    /**
     * 会话id
     */
    private String sessionId;
    /**
     * 最后接受到消息的消息体
     */
    private String lastMsg;
    /**
     * 最后接受到消息的毫秒值
     */
    private String lastReceiveTime;
    /**
     * 人数（类型是群组）
     */
    private Integer memberCount;
}
